(lang dune 3.21)
;          ^^^^
; When changing the version, don't forget to regenerate *.opam files
; by running [dune build].
(name dune)

(generate_opam_files true)

(accept_alternative_dune_file_name)

(strict_package_deps false)

; Reserved for Dune itself. This is to help with the bootstrap
(using dune-bootstrap-info 0.1)

;; This is required to allow Dune to access OxCaml variable. It
;; won't affect the behaviour of Dune if OxCaml is not available.
(using oxcaml 0.1)

(license MIT)
(maintainers "Jane Street Group, LLC <opensource@janestreet.com>")
(authors "Jane Street Group, LLC <opensource@janestreet.com>")
(source (github ocaml/dune))
(documentation "https://dune.readthedocs.io/")

(implicit_transitive_deps false)

(package
 (name dune)
 (synopsis "Fast, portable, and opinionated build system")
 ; The "depends" and "build" field are written in dune.opam.template
 (conflicts
  (merlin (< 3.4.0))
  (ocaml-lsp-server (< 1.3.0))
  (dune-configurator (< 2.3.0))
  (odoc (< 2.0.1))
  (dune-release (< 2.0.0))
  (js_of_ocaml-compiler (< 3.6.0))
  (jbuilder (= transition)))
 (description "
Dune is a build system that was designed to simplify the release of
Jane Street packages. It reads metadata from \"dune\" files following a
very simple s-expression syntax.

Dune is fast, has very low-overhead, and supports parallel builds on
all platforms. It has no system dependencies; all you need to build
dune or packages using dune is OCaml. You don't need make or bash
as long as the packages themselves don't use bash explicitly.

Dune is composable; supporting multi-package development by simply
dropping multiple repositories into the same directory.

Dune also supports multi-context builds, such as building against
several opam roots/switches simultaneously. This helps maintaining
packages across several versions of OCaml and gives cross-compilation
for free.
"))

(package
 (name dune-build-info)
 (dir otherlibs/dune-build-info)
 (synopsis "Embed build information inside executable")
 (depends
  (ocaml (>= 4.08)))
 (description "\
The build-info library allows to access information about how the
executable was built, such as the version of the project at which it
was built or the list of statically linked libraries with their
versions.  It supports reporting the version from the version control
system during development to get an precise reference of when the
executable was built.
"))

(package
 (name dune-private-libs)
 (dir otherlibs/dune-private-libs)
 (synopsis "Private libraries of Dune")
 (depends
  (csexp (>= 1.5.0))
  (pp (>= 1.1.0))
  (dyn (= :version))
  (stdune (= :version))
  (ocaml (>= 4.08)))
 (maintenance_intent none)
 (description "\
!!!!!!!!!!!!!!!!!!!!!!
!!!!! DO NOT USE !!!!!
!!!!!!!!!!!!!!!!!!!!!!

This package contains code that is shared between various dune-xxx
packages. However, it is not meant for public consumption and provides
no stability guarantee.
"))

(package
 (name dune-configurator)
 (dir otherlibs/configurator)
 (synopsis "Helper library for gathering system configuration")
 (depends
  (ocaml (>= 4.08.0))
  base-unix
  (csexp (>= 1.5.0)))
 (description "\
dune-configurator is a small library that helps writing OCaml scripts that
test features available on the system, in order to generate config.h
files for instance.
Among other things, dune-configurator allows one to:
- test if a C program compiles
- query pkg-config
- import #define from OCaml header files
- generate config.h file
"))

(package
 (name dune-action-plugin)
 (dir otherlibs/dune-action-plugin)
 (synopsis "[experimental] API for writing dynamic Dune actions")
 (depends
  (dune-glob (= :version))
  (csexp (>= 1.5.0))
  (ppx_expect :with-test)
  (stdune (= :version))
  (dune-private-libs (= :version))
  (dune-rpc (= :version))
  base-unix)
 (description "\

This library is experimental. No backwards compatibility is implied.

dune-action-plugin provides an API for writing dynamic Dune actions.
Dynamic dune actions do not need to declare their dependencies
upfront; they are instead discovered automatically during the
execution of the action.
"))

(package
 (name dune-glob)
 (dir otherlibs/dune-glob)
 (synopsis "Glob string matching language supported by dune")
 (depends
  (stdune (= :version))
  dyn
  re
  ordering)
 (description "\
dune-glob provides a parser and interpreter for globs as \
understood by dune language."))

(package
 (name dune-site)
 (dir otherlibs/dune-site)
 (synopsis "Embed locations information inside executable and libraries")
 (depends (dune-private-libs (= :version)))
 (description ""))

(package
 (name dune-rpc)
 (dir otherlibs/dune-rpc)
 (synopsis "Communicate with dune using rpc")
 (depends ocamlc-loc csexp ordering dyn xdg (stdune (= :version)) (pp (>= 1.1.0)))
 (description "Library to connect and control a running dune instance"))

(package
 (name dune-rpc-lwt)
 (dir otherlibs/dune-rpc-lwt)
 (synopsis "Communicate with dune using rpc and Lwt")
 (depends
  (dune-rpc (= :version))
  (csexp (>= 1.5.0))
  (lwt (>= 5.6.0))
  base-unix)
 (description "Specialization of dune-rpc to Lwt"))

(package
 (name dyn)
 (dir otherlibs/dyn)
 (synopsis "Dynamic type")
 (depends
  (ocaml (>= 4.08.0))
  (ordering (= :version))
  (pp (>= 1.1.0)))
 (maintenance_intent none)
 (description "Dynamic type"))

(package
 (name ordering)
 (dir otherlibs/ordering)
 (synopsis "Element ordering")
 (depends
  (ocaml (>= 4.08.0)))
 (maintenance_intent none)
 (description "Element ordering"))

(package
 (name xdg)
 (dir otherlibs/xdg)
 (synopsis "XDG Base Directory Specification")
 (depends
  (ocaml (>= 4.08)))
 (description "https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html"))

(package
 (name top-closure)
 (dir otherlibs/top-closure)
 (synopsis "Topological Closure")
 (depends
  (ocaml (>= 4.08)))
 (maintenance_intent none)
 (description "Generic Topological Closure"))

(package
 (name stdune)
 (dir otherlibs/stdune)
 (synopsis "Dune's unstable standard library")
 (depends
  (ocaml (>= 4.08.0))
  base-unix
  (csexp (>= 1.5.0))
  (dyn (= :version))
  (fs-io (= :version))
  (ordering (= :version))
  (pp (>= 2.0.0))
  (top-closure (= :version)))
 (maintenance_intent none)
 (description "This library offers no backwards compatibility guarantees. Use at your own risk."))

(package
 (name ocamlc-loc)
 (dir otherlibs/ocamlc-loc)
 (synopsis "Parse ocaml compiler output into structured form")
 (conflicts
  (ocaml-lsp-server (< 1.15.0)))
 (depends
  (ocaml (>= 4.08.0))
  (dyn (= :version)))
 (maintenance_intent none)
 (description "This library offers no backwards compatibility guarantees. Use at your own risk."))

(package
 (name chrome-trace)
 (dir otherlibs/chrome-trace)
 (synopsis "Chrome trace event generation library")
 (depends
  (ocaml (>= 4.08.0)))
 (description "This library offers no backwards compatibility guarantees. Use at your own risk."))

(package
 (name fs-io)
 (dir otherlibs/fs-io)
 (synopsis "File System Operations")
 (depends
  base-unix
  (ocaml (>= 4.08)))
 (maintenance_intent none)
 (description "Misc. Collection of File System Operations"))

